package com.techstar.ats.dxp;

import java.io.Serializable;
import java.util.Objects;

public abstract class AtsMessage implements Serializable {
	private static final long serialVersionUID = 1L;
	public int id;
	public int line;

	public boolean equals(Object o) {
		if(this == o) {
			return true;
		} else if(o != null && this.getClass() == o.getClass()) {
			AtsMessage that = (AtsMessage) o;
			return this.id == that.id && this.line == that.line;
		} else {
			return false;
		}
	}

	public int hashCode() {
		return Objects.hash(this.id, this.line);
	}
}
